var uploadFile = function () {
    return {
        //main function to initiate the module
        init: function (parameter,jsLang) {
			if(!$.isEmptyObject(parameter)){
				
				for(var i=0; i<parameter.length; i++){					
					(function(j){
						$('#'+parameter[j].btn).on('click', function(){

							art.dialog.open(""+ABS_URL_Theme+"Assets/plugins/ckfinder/upload_file.html?abs_url=&type=File&filetype=file&box="+parameter[j].box+"&field="+parameter[j].field+"",{title: parameter[j].title, width:650,height:400,fixed:true});
							
						});
					})(i);
				}
			}
			
			//删除文件
			$('.fdel').live('click',function(){
				$(this).parent('p').remove();
			});
        }

    };

}();